// 这个文件是webpack的
const {
    override,
    addWebpackAlias,
    fixBabelImports
  } = require("customize-cra");
  const path = require("path");
  
  module.exports = override(
    addWebpackAlias({
      "styles": path.resolve(__dirname, "./src/assets/styles"),
      "images": path.resolve(__dirname, "./src/assets/images"),
      "components": path.resolve(__dirname, "./src/components"),
      "pages": path.resolve(__dirname, "./src/pages"),
      "utils": path.resolve(__dirname, "./src/utils"),
      "store": path.resolve(__dirname, "./src/store")
    })
  )

// const { injectBabelPlugin } = require('react-app-rewired');
//   module.exports = function override(config, env) {
//   config = injectBabelPlugin(['import', { libraryName: 'antd-mobile', style: 'css' }], config);
//     return config;
//   };